package request

type AlibabaSscSupplyplatformServiceInventoryQueryRequest struct {
	/*
	   查询开始日期。yyyy-MM-dd格式     */
	StartDay *string `json:"start_day" required:"true" `
	/*
	   查询结束日期。与start间隔不能超过31天。yyyy-MM-dd格式     */
	EndDay *string `json:"end_day" required:"true" `
	/*
	   服务提供者类型。参考alibaba.ssc.supplyplatform.servicecapacity.save入参     */
	ProviderType *string `json:"provider_type" required:"true" `
	/*
	   服务提供者类型。参考alibaba.ssc.supplyplatform.servicecapacity.save入参     */
	ProviderId *int64 `json:"provider_id" required:"true" `
}

func (s *AlibabaSscSupplyplatformServiceInventoryQueryRequest) SetStartDay(v string) *AlibabaSscSupplyplatformServiceInventoryQueryRequest {
	s.StartDay = &v
	return s
}
func (s *AlibabaSscSupplyplatformServiceInventoryQueryRequest) SetEndDay(v string) *AlibabaSscSupplyplatformServiceInventoryQueryRequest {
	s.EndDay = &v
	return s
}
func (s *AlibabaSscSupplyplatformServiceInventoryQueryRequest) SetProviderType(v string) *AlibabaSscSupplyplatformServiceInventoryQueryRequest {
	s.ProviderType = &v
	return s
}
func (s *AlibabaSscSupplyplatformServiceInventoryQueryRequest) SetProviderId(v int64) *AlibabaSscSupplyplatformServiceInventoryQueryRequest {
	s.ProviderId = &v
	return s
}

func (req *AlibabaSscSupplyplatformServiceInventoryQueryRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.StartDay != nil {
		paramMap["start_day"] = *req.StartDay
	}
	if req.EndDay != nil {
		paramMap["end_day"] = *req.EndDay
	}
	if req.ProviderType != nil {
		paramMap["provider_type"] = *req.ProviderType
	}
	if req.ProviderId != nil {
		paramMap["provider_id"] = *req.ProviderId
	}
	return paramMap
}

func (req *AlibabaSscSupplyplatformServiceInventoryQueryRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
